from fastapi import APIRouter, Depends


from app.api.admin.service.coupon.coupon_cate import CouponCateService
from app.utils.res import unified_resp


coupon_cate = APIRouter(
    prefix="/coupon_cate",
    tags=["优惠券"],
)


@coupon_cate.post("/list")
@unified_resp
async def list(coupon_cate_service: CouponCateService = Depends(CouponCateService.instance)):
    return await coupon_cate_service.list()





